<?php


/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Story
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
  $this->headLink()
    ->appendStylesheet($this->layout()->staticBaseUrl . '/application/modules/Radcodes/externals/styles/admin/main.css'); 
?>
<style type="text/css">
    ul.radcodes_categories_list div.radcodes_category_item {
    display: inline-block;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    overflow: hidden;
    padding: 7px 10px 7px 7px;
    background-color: #E9F4FA;
    border: 1px solid #D0E2EC;
    min-width: 700px;
}
</style>
<?php 
	echo $this->render('_jsSort.tpl');
?>
<div class="headline">
  <h2>
    <?php echo $this->translate('Stories');?>
  </h2>
  <div class="tabs">
    <?php
      // Render the menu
      echo $this->navigation()
        ->menu()
        ->setContainer($this->navigation)
        ->render();
    ?>
  </div>
</div>

<div class="radcodes_categories_options">
<?php 
$title = "Add Chapter";
if($this->story->category_id == Story_Model_Category::SCRIPT_PLAY){	
	$title = "Add Scene";
};
if($this->story->category_id != Story_Model_Category::STORY_THREAD){ 
    echo $this->htmlLink(
      $this->url(array('action'=>'create', 'story_id' => $this->story_id)),
      $this->translate($title),
      array('class' => 'smoothbox buttonlink icon_friend_add')
  ); 
} ?>

<a href="<?php echo $this->story->getHref(); ?>" class="buttonlink">Back to "<?php echo $this->story->getTitle(); ?>"</a>
</div>
<?php echo $this->render('_list.tpl'); ?>
